home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000002_icon-group-sender _Mon Apr 27 08:10:29 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id IAA18203
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 27 Apr 1998 08:10:28 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA09125; Mon, 27 Apr 1998 08:10:26 -0700
  7. Message-Id: <3.0.5.32.19980426052832.007a9be0@doors>
  8. X-Sender: bgbauer#alpha.delta.edu@doors
  9. X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
  10. Date: Sun, 26 Apr 1998 05:28:32 -0700
  11. To: "Icon Group"<icon-group@optima.CS.Arizona.EDU>
  12. From: Scissors <bgbauer@alpha.delta.edu>
  13. Subject: A few basic questions
  14. Mime-Version: 1.0
  15. Content-Type: text/plain; charset="us-ascii"
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 741
  19.  
  20.  
  21. Hi,
  22.  
  23. Im having a little trouble understanding a few of what are probably basic
  24. Icon programming methods.
  25.  
  26. Is it possible to evaluate expression and assign at the same time in this
  27. manner?
  28.  
  29. if \var := expr then fail
  30.  
  31. meaning :
  32. if /expression then fail
  33. else var := expression
  34.  
  35. It may seem trivial, but for some reason I find myself wanting to use the
  36. first version by default.  Its easier to type and understand, takes up less
  37. lines on the screen, but when I cant find the correct format to get it to
  38. work.  
  39.  
  40. Also is it acceptable to use "if expr then expr else expr" all on the same
  41. line?  Its getting harder to move around in my code as it gets longer with it
  42. all '{' and '}'d on multiple lines.
  43.  
  44. Also what are string images used for?
  45.  
  46.  
  47.  
  48.